package cn.heycm.blog.common.entity.constant;

import java.text.MessageFormat;

/**
 * 缓存键
 *
 * @author hey
 * @version 1.0
 * @since 2024/9/17 19:08
 */
public interface CacheSet {

    static String format(String key, Object... args) {
        return MessageFormat.format(key, args);
    }

    /**
     * 登录验证码
     */
    String LOGIN_VERIFY_CODE = "login:verify:code:{0}";

    /**
     * 登录会话
     */
    String LOGIN_SESSION = "login:session:{0}";
}
